[MUSIC] Hello and welcome to this demonstration
on input methods in studio. [MUSIC]
In this video you will learn about various input
methods that are default, send window messages and
simulate type or click. The first method is the default method. Open a notepad application
on your desktop. Go to UI Path studio Search an open
application activity from the activities panel and drag it in the designer panel. [MUSIC] A sequence is automatically created when
the input dialog activity is dropped in the designer panel, rename it as input
methods and add an annotation to it. [MUSIC] Rename the open application
activity as notepad.exe [MUSIC] Click indicate window on screen link and indicate the already open notepad window [MUSIC] Navigate to its properties panel and click on the ellipsis icon
of the selector property. You will learn about selector
editor later in the course. [MUSIC] From the selector editor window,
uncheck title checkbox. This ensures that the process
will look for any notepad window on the screen irrespective of its title or
name, click validate and then click ok. [MUSIC] Search for a type into activity, drag and drop it in the do container
of the open application activity and rename it as Sample Text 1. [MUSIC] Click indicate element inside window link
and indicate the notepad text editor area. [MUSIC] Enter the text in double quotes, automation is changing the world in
the type into activities text box. Search for a click activity and drag and
drop below the type into activity and rename it. [MUSIC] Click Indicate element inside window and indicate the minimize button
of the notepad window. [MUSIC]
Search for another type into activity and drag and drop it below the click activity. [MUSIC] Rename this activity as Sample Text 2. [MUSIC] Click Indicate element inside window and
indicate the notepad text editor area, enter text in double quotes,
automation makes life easier. [MUSIC] Click the dropdown icon and
select Enter from the dropdown list. [MUSIC]
Cut the special key string for enter and paste it before the text. [MUSIC] Search for
another click activity, drag and drop it below type into Sample Text
2 activity and rename it. [MUSIC] Click indicate element
inside window link and click the notepad icon in the task bar. This action will restore the notepad
window which was minimized earlier. Now, click Save to save the project. [MUSIC] Select Run from the debug file menu on
the design ribbon to run the project. [MUSIC] This is known as the default input
method where the pre existing text is not erased and
the special keys are supported. However, it does not support
writing in the background. [MUSIC]
Now, to demonstrate the send
window messages input method, navigate to the properties panel
of both the type into activities. Set Send window messages property
to True and rear on the process. [MUSIC] You can see that the second text gets written in a new line while the notepad was minimized. In this way the send window messages
input method works in the background, supports special keys and
does not erase the pre existing text. [MUSIC] For demonstrating the simulate type
method, navigate to the properties panel of both the type into activities and
deselect send window messages property. Set simulate type property to True. Rerun the process. [MUSIC] Here, the second text gets written after
replacing the first text while notepad was minimized. Also, the text shows the special key for enter K enter that was inserted
when the code was built. So, the simulate type input method
works in the background, but it does not support special keys and
it erases the pre existing text. With this,
we come to the end of the video. Thank you for watching.